package com.zheng.mall.service;

import com.zheng.mall.common.api.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * 远程调用认证服务
 */
@FeignClient("mall-auth")
public interface AuthService {
    @PostMapping("/oauth/token")
    CommonResult getAccessToken(@RequestParam Map<String, String> parameters);
}
